package com.caiyouxi.app.controller;

import com.caiyouxi.app.model.AppCategoryBean;
import com.caiyouxi.app.service.AppCategoryBeanService;
import com.caiyouxi.common.bean.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("app_category")
public class AppCategoryBeanController {
    @Autowired
    private AppCategoryBeanService service;
    @RequestMapping("delete_app_category")
    public ResData delete_app_category(@RequestBody AppCategoryBean bean){
        return service.delete_app_category(bean);
    }

    @RequestMapping("insert_app_category")
    public ResData insert_app_category(@RequestBody AppCategoryBean bean){
        return service.insert_app_category(bean);
    }

    @RequestMapping("select_app_category")
    public ResData select_app_category(@RequestBody AppCategoryBean bean){
        return service.select_app_category(bean);
    }

    @RequestMapping("update_app_category")
    public ResData update_app_category(@RequestBody AppCategoryBean bean){
        return service.update_app_category(bean);
    }

    @RequestMapping("get__app_category_list")
    public ResData get__app_category_list(@RequestBody AppCategoryBean bean){
        return service.get__app_category_list(bean);
    }
}
